<!-- src/views/AccountCenter/Settings.vue -->
<template>
    <div class="settings-container">
      <!-- 标题 -->
      <h2 class="settings-title">账号设置</h2>
  
      <!-- 设置项列表 -->
      <div class="settings-list">
        <!-- 登录密码 -->
        <div class="setting-item">
          <div class="item-header">
            <span class="item-title">登录密码</span>
            <span class="status-icon success"><check-icon /></span>
          </div>
          <button class="action-btn primary">修改</button>
        </div>
  
        <!-- 邮箱验证 -->
        <div class="setting-item">
          <div class="item-header">
            <span class="item-title">邮箱验证</span>
            <span class="status-icon warning"><alert-icon /></span>
          </div>
          <div class="item-description">
            验证邮箱可帮助您快速找回密码，并可接收订单、演出通知、促销活动等提醒
          </div>
          <button class="action-btn secondary">立即绑定</button>
        </div>
  
        <!-- 手机验证 -->
        <div class="setting-item">
          <div class="item-header">
            <span class="item-title">手机验证</span>
            <span class="status-icon success"><check-icon /></span>
          </div>
          <div class="item-info">
            您验证的手机:111111111111
          </div>
          <button class="action-btn primary">更换</button>
        </div>
  
        <!-- 实名认证 -->
        <div class="setting-item">
          <div class="item-header">
            <span class="item-title">实名认证</span>
            <span class="status-icon warning"><alert-icon /></span>
          </div>
          <div class="item-description">
            认证您的实名信息，提高安全等级
          </div>
          <button class="action-btn secondary">立即验证</button>
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
  // 图标组件（需自行实现或引入图标库）
  const CheckIcon = () => '✓' // 替换为SVG实现
  const AlertIcon = () => '⚠' // 替换为SVG实现
  </script>
  
  <style scoped>
  .settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .settings-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  .settings-list {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .setting-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    &:last-child {
      border-bottom: none;
    }
  }
  
  .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .item-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  
  .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
  
    &.success {
      color: #52c41a;
      background: #f6ffed;
    }
  
    &.warning {
      color: #faad14;
      background: #fffbe6;
    }
  }
  
  .item-description {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0;
  }
  
  .item-info {
    color: #666;
    font-size: 13px;
    margin: 12px 0;
  }
  
  .action-btn {
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
  
    &.primary {
      background: #230303;
      color: white;
      border: none;
      &:hover {
        background: #ff1a5e;
      }
    }·
  
    &.secondary {
      background: white;
      color: #ff4081;
      border: 1px solid #ff4081;
      &:hover {
        background: #fff5f7;
      }
    }
  }
  </style>